package com.graduationdesign.zengyan.graduationdesignapp.dataLayer.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by ZengYan on 2018/5/9.
 *
 * @desc :
 */
public class Event implements Parcelable {


    /**
     * bgUrl : http://127.0.0.1:8080/static/201430098034_avatar.png
     * description : zengyan060039
     * detailUrl : http://127.0.0.1:8080/static/201430098034_avatar.png
     * id : 1
     * orgId : 0
     * title : zengyan060039
     */



    private String bgUrl;
    private String description;
    private String detailUrl;
    private int id;
    private int orgId;
    private String title;

    public String getBgUrl() {
        return bgUrl;
    }

    public void setBgUrl(String bgUrl) {
        this.bgUrl = bgUrl;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDetailUrl() {
        return detailUrl;
    }

    public void setDetailUrl(String detailUrl) {
        this.detailUrl = detailUrl;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOrgId() {
        return orgId;
    }

    public void setOrgId(int orgId) {
        this.orgId = orgId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.bgUrl);
        dest.writeString(this.description);
        dest.writeString(this.detailUrl);
        dest.writeInt(this.id);
        dest.writeInt(this.orgId);
        dest.writeString(this.title);
    }

    public Event() {
    }

    protected Event(Parcel in) {
        this.bgUrl = in.readString();
        this.description = in.readString();
        this.detailUrl = in.readString();
        this.id = in.readInt();
        this.orgId = in.readInt();
        this.title = in.readString();
    }

    public static final Parcelable.Creator<Event> CREATOR = new Parcelable.Creator<Event>() {
        @Override
        public Event createFromParcel(Parcel source) {
            return new Event(source);
        }

        @Override
        public Event[] newArray(int size) {
            return new Event[size];
        }
    };
}
